#pragma once

#include "mysql_pool.h"

struct TestModel {
    uint64_t    id;
    std::string name;
};

class TestMapper
{
public:
    TestMapper(MySQLPool *pool);

public:
    void                   createTable();
    void                   dropTable();
    int                    insertTest(const TestModel &model);
    std::vector<TestModel> findTestAll();

private:
    MySQLPool *pool_;
};